package tianqi.service.shop;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.ui.Model;

import tianqi.entity.ShopCar;

public interface ShopCarService {
	
	public static final String COOKIE_NAME="TianQi_Cookies";
	public String queryCar(HttpServletRequest req,HttpServletResponse res,Model m);
	
	public void addCar(String id,String num,String spec,HttpServletRequest req,HttpServletResponse res);
	
	public Integer querySpec(Map m);
	
	public void addNum(String id,String num,String spec,HttpServletRequest req,HttpServletResponse res);
	public void deleteCar(String id,String spec, HttpServletRequest req, HttpServletResponse res);
	public void clearCar(HttpServletRequest req, HttpServletResponse res);
	public Map<String, String> queryCarNum(HttpServletRequest req, HttpServletResponse res);
	
	public String checkStockAll(HttpServletRequest req);
	
	public List<ShopCar> queryCars(HttpServletRequest req, HttpServletResponse res);
}
